package com.smile.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smile.model.dto.request.*;
import com.smile.model.response.response.GetAirportByIdResponseDTO;
import com.smile.model.response.response.GetAirportListResponseDTO;
import com.smile.model.response.response.GetFlyResultResponseDTO;

import java.io.IOException;
import java.util.List;

/**
 * 机场相关service
 */
public interface FlyService {
    //一键起飞
    GetFlyResultResponseDTO takeoffToPoint(FlyRequestDTO flyRequestDTO) throws IOException;
    //抢夺控制权
    GetFlyResultResponseDTO flightAuthorityGrab(FlyRequestDTO flyRequestDTO) throws IOException;
    //进入指令飞行模式
    GetFlyResultResponseDTO drcModeEnter(FlyRequestDTO flyRequestDTO) throws IOException;

    //杆量控制
    GetFlyResultResponseDTO stickControl(FlyStickControlRequestDTO flyStickControlRequestDTO) throws IOException;

    //返航
    GetFlyResultResponseDTO returnHome(FlyRequestDTO flyRequestDTO) throws IOException;

    //飞向目标点
    Boolean flyToPoint(FlyRequestDTO flyRequestDTO) throws IOException;
}
